public class Test {
    public static void main(String[] args) {
        int[] array = new int[]{1,2,3,4,5};
        //访问元素
        System.out.println(array[0]);
        System.out.println(array[1]);
        System.out.println(array[2]);
        System.out.println(array[3]);
        System.out.println(array[4]);

        //修改元素
        array[0]=100;



    }
    public static void main3(String[] args) {
        int[] array;
        array = new int[5];

        int[] array1;
        array = new int[]{1,2,3};

        String[] array2 = new String[5];


    }
    public static void main2(String[] args) {

        int[] array1 = {1,2,3,};
        double[] array2 = {1.1,1.2,1.3};
        String[] array3 = {"agressive","!!"};

    }
    public static void main1(String[] args) {
        int[] array = new int[5];

        int[] array1 = new int[]{1,2,3,};
        double[] array2 = new double []{1.1,1.2,1.3};
        String[] array3 = new String[]{"agressive","!!"};




    }
}
